/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package nl.moviefan.site.service;


import nl.moviefan.site.model.MoviefanRole;
import nl.moviefan.site.repository.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author ieme
 */
@Service
public class RoleService {
    
    @Autowired
    private RoleRepository roleRepository;
    
    public MoviefanRole findByName(String name) {
        return roleRepository.findByMoviefanRole(name);
    }

}
